package org.example.order.feign.client;

import icu.funkye.entity.Orders;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(contextId = "order-service", name = "order-service",path = "/order")
public interface OrderFeignClient {

    /**
     * 保存订单
     * @param
     * @return
     */
    @PostMapping("/save")
    Orders save(@RequestBody Orders orders);

}
